﻿namespace DFGK_WMS.Model.DTO
{
    public class TShippingOrderDetailPlusDTO
    {
        public string OrderSn { get; set; }
        public int BillType { get; set; }
        public int CustomerId { get; set; }
        public int NowUserId { get; set; }
        public string NowUserRealName { get; set; }
        public string CarCode { get; set; }
        /// <summary>
        /// 区位编码
        /// </summary>
        public string StationId { get; set; }

        /// <summary>
        /// 没有不知道为什么有
        /// </summary>
        public string? AreaName { get; set; }
        /// <summary>
        /// 没用
        /// </summary>
        public long? Timestamp { get; set; }
        public List<TShippingOrderDetailPlusLockCellDTO> ShippingOrderDetailPlusLockCellDTOs { get; set; }

        /// <summary>
        /// AGV起点
        /// </summary>
        public string AGVStartPoint { get; set; }

        /// <summary>
        /// AGV起点
        /// </summary>
        public string AGVEndPoint { get; set; }
    }

    public class UpdGetOutOrder
    {
        public int id { get; set; }
        public string OrderSn { get; set; }
        public int BillType { get; set; }
        public int CustomerId { get; set; }
        public string CarCode { get; set; }
        public List<TShippingOrderDetailPlusLockCellDTO> shippingOrderDetailPlusLockCellDTOs { get; set; } = new List<TShippingOrderDetailPlusLockCellDTO>();
    }
    /// <summary>
    /// 
    /// </summary>
    /// <param name="OrderSn">单号</param>
    /// <param name="PackQty">实际装车多少数量</param>
    /// <param name="barCode">没有出完的托盘</param>
    /// <param name="CreateUser"></param>
    /// <param name="CreateUserld"></param>
    public class OutHouseDTO
    {
        public OutHouseDTO() 
        {
            BuHuo = new List<BuHuo>();
        }
        public string OrderSn { get; set; }
        public int PackQty { get; set; }
        public List<HuiLiuRuKu>? HLRK { get; set; }=new List<HuiLiuRuKu>();
        public List<BuHuo>? BuHuo { get; set; }
        public string? CreateUser { get; set; }
        public int? CreateUserld { get; set; }
    }
    public class HuiLiuRuKu
    {
        /// <summary>
        /// 原推盘条码
        /// </summary>
        public string OldBarCode { get; set; }
        /// <summary>
        /// 新推盘条码可为空，如果为空则使用原托盘条码入库
        /// </summary>
        public string? NewBarCode { get; set; }
        /// <summary>
        /// 回流入库的数量
        /// </summary>
        public int Qty { get; set; }
    }
    public class BuHuo
    {
        /// <summary>
        /// 补货的物料
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 补货的数量
        /// </summary>
        public int Qty { get; set; }
    }
}
